package extra.navigator;

import java.io.IOException;

public class ExtraNavigatorEventNav {
	static void Navigate (String Position, Integer Type) {
		try {
			if (Type == 0) {
				Process process = Runtime.getRuntime().exec("explorer.exe " + Position);
				System.out.println("explorer.exe " + Position);
			} else {
				Process process = Runtime.getRuntime().exec("cmd.exe /c start " + Position + "" );
		//		Process process = Runtime.getRuntime().exec("\"c:\\program files\\winrar\\winrar\" ");
				//
				
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			System.out.println("ERROR:" + e.toString());
			System.out.println("\"" + Position + "\"" );
		}
	}

}
